<?php

/**
 * 网站后台路由--管理员
 */

Route::group(['middleware'=>'adminAuth', 'namespace' => 'Admin', 'prefix' => 'admin/user/'],function() {
	//列表
    Route::get('datalist', 'UserController@listData');
	Route::get('datatablelist', 'UserController@bootstrapTableList');
    //添加
	Route::get('addview', 'UserController@addDataView');
	Route::post('addsave', 'UserController@toAddData');
    //编辑
	Route::get('editview/{id}', 'UserController@updateDataView');
	Route::post('editsave/{id}', 'UserController@toUpdateData');
    //修改状态
	Route::get('status/{id}/{status?}', 'UserController@toStatusData');
    //删除
	Route::delete('destroy', 'UserController@toDelData');
});

